<?php
include ('top.ajax.php');

if($_POST['genre']=="subsubcategory") {
$subsubcat=new SubSubcategory($_POST['id']);
$subsubcat->delete();
}
if($_POST['genre']=="subcategory") {
$subcat=new Subcategory($_POST['id']);
$subcat->delete();
}
if($_POST['genre']=="category") {
$cat=new Category($_POST['id']);
$cat->delete();
}


?>